package flow;

import java.util.Scanner;

public class Max {
    static int max(int a,int b){
        return  a>b?a:b;
    }
    static int max(int a,int b,int c){
        int max=a;
        if (b>max) max=b;
        else if (c>max)max=c;
            return max;
    }

    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        int x=10,z=20,y=5;
        System.out.println("x,z的最大值"+max(x,z)+"。");
        System.out.println("x,z,y的最大值"+max(x,z,y)+"。");

    }
}
